package com.cx.auth.feign.fallback;

import com.cx.auth.enums.ResponseCodeEnum;
import com.cx.auth.feign.AuthService;
import com.cx.auth.model.vo.ResultBean;
import com.cx.auth.model.vo.UserDetailsVO;
import org.springframework.stereotype.Component;

/**
 * @author: zhangcx
 * @Description: auth feign service
 * @date: 2024/1/10 11:40
 * @email: zhangcx@bluemoon.com.cn
 */
@Component
public class AuthServiceFallback implements AuthService {

    @Override
    public ResultBean<UserDetailsVO> getUserInfo(String token) {
        return ResultBean.createFail(ResponseCodeEnum.FAIL);
    }

    @Override
    public ResultBean delToken(String token) {
        return ResultBean.createFail(ResponseCodeEnum.FAIL);
    }
}
